Variant.DateValue Property

Syntax

DateValue as Date


Returns the value of the variant as a Date. When retrieving the string value of a date, the string is returned in SQL date format
YYYY-MM-DD HH:MM.